﻿using Common.Contract.Customer.Record;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Authentication.Model.ViewModel.Customer
{
    public class ProvincesViewModel : GenerateViewMode, IViewModel
    {
        [Required(ErrorMessage = "ProvinceName is required.")]
        [Display(Name = "ProvinceName:")]
        [StringLength(50, ErrorMessage = "Province Name cannot be longer than 50 characters.")]
        public string ProvinceName { get; set; }

        public decimal Lng { get; set; }

        public decimal Lat { get; set; }

        public List<RegionRecord> Regions { get; set; }

        public string Identifier { get; set; }

        [Display(Name = "Region:")]
        [Required(ErrorMessage = "Region is required.")]
        public string RegionIdentifier { get; set; }
    }
}
